import { defineStore } from "pinia";


const userChartShowState = defineStore('chartShowState' ,{
    state: () => {
        return {
            state: 0,
            listenCount: 0,
            userName: '',
            userID: 0
        }
    },
    actions: {
        changeState(value: number) {
            this.state = value
        },
        changeUserListenCount(value: number, nickName: string, id: number) {
            this.listenCount = value
            this.userName = nickName
            this.userID = id
        }
    }
})

export default userChartShowState
